home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
uucp
/
wcnews_1_0_30.lha
/
man
/
bencode.man
< prev
next >
Wrap
Text File
|
1994-01-04
|
2KB
|
67 lines
BENCODE(1) BENCODE(1)
1mNAME22m
bencode, bdecode - encode a binary file into printable
ASCII; decode it back into binary.
1mSYNOPSIS22m
1mbencode22m 1m[source]22m
1mbdecode22m 1m[source]22m
1mDESCRIPTION22m
4mBencode24m is used to a encode a binary file into printable
ASCII, and 4mbdecode24m is used to decode an encoded file back
into binary. These functions are typically used to pack
age a binary file for mailing.
4mBencode24m takes the named source file (the default is stan
dard input) and produces an encoded version on the stan
dard output. The encoding uses only the ASCII characters
``A'' - ``Z'', ``a'' - ``z'', ``0'' - ``9'', ``+'', and
``''. The ASCII characters blank, newline, and ``/''
also appear in the encoded file, but do not represent
encoded bits. The encoded file is terminated with a byte
count and cyclic redundancy check for detecting corrupted
files.
4mBdecode24m reads a file encoded by bencode (the default is
standard input), strips off any leading and trailing lines
added by mailers, and writes the decoded version to stan
dard output.
These functions are similar to 4muuencode24m and 4muudecode,24m but
are more robust because of the CRC check and because they
don't send characters like ``^'' and ``\'', which are
likely to get mangled if the file should happen to pass
through a nonASCII machine.
1mSEE22m 1mALSO22m
uuencode(1)
1mAUTHORS22m
Ken Lalonde and Reg Quinton
1mBUGS22m
The file is expanded by 35% (3 bytes become 4 plus control
information) causing it to take longer to transmit.
9 January 1988 1